home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / WIN_PRO / VIEWS.ZIP;1 / CVDZIP.EXE / CVCLINFO.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-20  |  683 b   |  53 lines

  1. /*
  2.     cvclinfo.cpp
  3.  
  4.     Information holder for ClassTreeView
  5.  
  6.     C++/Views 2.0 Demo
  7.     Copyright (c) 1992, by Liant Software Corp.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12. */
  13.  
  14. #include "cvclinfo.h"
  15.  
  16. defineTopClass(ClassInfo)
  17.  
  18. ClassInfo::ClassInfo()
  19. {
  20.     ;
  21. }
  22.  
  23. ClassInfo::ClassInfo(char *n, ClassInfo *prev, int x, int y)
  24.     : name(n)
  25. /*
  26.     Construct a ClassInfo object.
  27.  
  28.     A ClassInfo object contains information used by the ClassTreeView
  29.     class.    
  30. */
  31. {
  32.     if (prev) {
  33.         prev->next = this;
  34.     }
  35.  
  36.     next = 0;
  37.     parent = 0;
  38.     cx = x;
  39.     cy = y;
  40. }
  41.  
  42. ClassInfo::~ClassInfo()
  43. {
  44.     ;
  45. }
  46.  
  47. boolean ClassInfo::free()
  48. {
  49.     delete this;
  50.     return(TRUE);
  51. }
  52.  
  53.